const app = getApp();

Component({
  properties: {
    params: {
      type: Object,
      value: {}
    }
  },
  options: {
    addGlobalClass: true
  },
  data: {
    theme: '',
    result: []
  },
  ready() {
    const {
      layout,
      background,
      field,
      result
    } = this.properties.params

    this.setData({
      theme: app.global.theme,
      layout: layout == 1,
      background: background,
      field: field,
      result: result
    });
  },
  methods: {}
})